package com.jk.item.service.impl;

import com.jk.common.base.service.BaseServiceImpl;
import com.jk.item.pojo.ItemCat;
import com.jk.item.service.ItemCatService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author cuiP
 * Created by cuip on 2017/6/24.
 */
@Transactional
@Service
public class ItemCatServiceImpl extends BaseServiceImpl<ItemCat> implements ItemCatService{

    @Transactional(readOnly = true)
    @Override
    public List<ItemCat> getItemCatList(Long parentId) {
        ItemCat itemCat = new ItemCat();
        itemCat.setParentId(parentId);
        return this.findList(itemCat);
    }
}
